<template>
    <div>
        <Nav/>
        <p class="word">紧致抗衰的秘籍</p>
        <Fu :arr="dataa"/>
        <p class="word">想瘦哪里瘦哪里</p>
        <Fu :arr="datab"/>
        <p class="word">小调整大变身</p>
        <Fu :arr="datac"/>
    </div>
  
</template>

<script>
import Nav from "@/components/liyang/nav.vue"
import Fu from "@/components/liyang/cosmetology/fu.vue"
import {getlink} from "@/api/getapi.js"
export default {
    
    data(){
        return{
            arr:[]
        }
    },
    components:{
        Nav,Fu
    },
    mounted(){
        getlink("/api/findGoods").then((ok)=>{
            console.log(ok.data);
            this.arr=ok.data;
        })
    },
    computed:{
        dataa(){
            return this.arr.slice(0,4)
        },
        datab(){
            return this.arr.slice(2,6)
        },
        datac(){
            return this.arr.slice(0,4)
        },
    }
}
</script>

<style scoped>
    .word{
        font-size: 2rem;
    }
    .word{
        font-size: 0.3rem;
        padding: 0.3rem;
    }
</style>